package com.itheima.io;

import java.io.FileOutputStream;
import java.io.IOException;

public class Demo1 {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos = new FileOutputStream("day12_file&io\\a.txt",true);

        fos.write("静夜思".getBytes());
        fos.write(System.lineSeparator().getBytes());
        fos.write("床前明月光".getBytes());
        fos.write(System.lineSeparator().getBytes());
        fos.write("疑是地上霜".getBytes());
        fos.write(System.lineSeparator().getBytes());
        fos.write("举头望明月".getBytes());
        fos.write(System.lineSeparator().getBytes());
        fos.write("低头思故乡".getBytes());

        fos.close();
    }
}
